package com.bailan.foreat.service.impl;

import com.bailan.foreat.entity.ProductType;
import com.bailan.foreat.mapper.ProductMapper;
import com.bailan.foreat.mapper.ProductTypeMapper;
import com.bailan.foreat.service.ProductTypeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ste
 * @since 2023-02-21 07:50:43
 */
@Service
public class ProductTypeServiceImpl extends ServiceImpl<ProductTypeMapper, ProductType> implements ProductTypeService {
    @Autowired
    private ProductTypeMapper productTypeMapper;
    @Override
    public List<ProductType> queryByStoreId(Integer storeId) {

       return productTypeMapper.queryByStoreId(storeId);

    }

    @Override
    public List<ProductType> allStore() {
        return productTypeMapper.selectList(null);
    }

}
